<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>	
<!DOCTYPE html>
<html>
<head>
 <meta charset="utf-8">
    <link href="static/css/bootstrap.min.css" rel="stylesheet" type="text/css">
    <link href="static/css/bootstrap-table.css" rel="stylesheet" type="text/css">
    <link rel="stylesheet" href="static/css/base.css" />
    <link rel="stylesheet" href="static/css/info-mgt.css" />
    <style>
       .layui-layer-title{background:url(images/righttitlebig.png) repeat-x;font-weight:bold;color:#46647e; border:1px solid #c1d3de;height: 33px;line-height: 33px;}
        .tabe_bot label{width: 70px;text-align: right;font-size: 14px;font-weight: 900;color: #46647e}
        .l_left{float: left}
        .tabe_bot input,.tabe_bot  select{width: 100px;height: 30px;border-radius: 6px;margin:0 20px 0 0;border: none;border: 1px #ccc solid}
        .tabe_btn{width: 30px;height: 30px;background-color: #68b86c;border: none;border-radius: 6px;color: #fff}
    	
    	.table_fa a{
    			display: block;
				border: 1px solid #68b86c;
				width: 80px;
				height: 26px;
				text-decoration:none;
				text-align: center;
				font-size: 18px;
				background-color: #68b86c;
				color: white;
				margin-left: 19px;
				border-radius: 5px;
				line-height:22px; 
    	}
    	
    	.bt {
				margin-top: 10px;
				width: 300px;
			}
		.btnn{width: 40px;height: 24px;background-color: #68b86c;border: none;border-radius: 6px;color: #fff;}	
    	
    </style>
    <title>简历管理</title>
</head>
<body>
<input type="text" id="path" hidden="hidden" name="path" value="${pageContext.request.contextPath }"/>
	<div class="title"><h2>简历管理</h2></div>
	<div class="query">
        <div class="tabe_bot">
    	<div class="l_left"><label>姓名：</label><input type="text" placeholder="请输入姓名" id="name" name="name"></div>
        <div class="l_left"><label>应聘职位：</label><input type="text" placeholder="请输入应聘职位" id="postId" name="postId"></div>
        <div class="l_left"><label>工作经验：</label><input type="text" placeholder="请输入工作经验" id="workExperience" name="workExperience"></div>
        <div class="l_left"><label>简历状态：</label><select name="resumeState" id="resumeState">
				<c:if test="${rlist != null }">
				    <option value="0">--请选择--</option>
					  <c:forEach var="Rs" items="${rlist}">
						  <option <c:if test="${Rs.id == resumeState }">selected="selected"</c:if>
						   	value="${Rs.id}">${Rs.resume}</option>
					  </c:forEach>
				</c:if>
	       </select></div>
        <div class="l_left"><label>登记日期：</label><input id="registraTime" placeholder="输入登记日期" /></div>
        
        <button class="tabe_btn" onclick="getData()">查询</button>
        <div class="clear"></div>
    </div>
</div>
<div class="table_fa">
 <a href="${pageContext.request.contextPath }/rt_resumeadd.html">简历登记</a>
</div>

	
 <div class="modal fade" id="myModal" tabindex="-1" role="dialog" >
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
        <h4 class="modal-title" id="exampleModalLabel">警告</h4>
      </div>
      <div class="modal-body">
                <h3 id="warningText">不能修改简历状态</h3>
      </div>
      <div class="modal-footer">
       <button type="button" class="btn btn-default" data-dismiss="modal">确认</button>
       <button type="button" class="btn btn-primary" data-dismiss="modal">取消</button>
      </div>
    </div>
  </div>
</div>
     <div class="modal fade" id="myModals" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
                <div class="modal-dialog" role="document">
                    <div class="modal-content">
                        <div class="modal-header">
                            <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                                <span aria-hidden="true"></span>
                            </button>
                            <input type="text" style="display:none;" id="id" name="id" value="">
                            <h6 class="modal-title" id="myModalLabel">推荐面试</h6>
                        </div>
                            <div class="modal-body">
                                <!--数据项-->
                                <form method="post" action="#" id="form_add">
                                <table>
                                <tr>
                                	<td class="form-group form-inline">推荐人</td>
                                	<td><input id="recritmentName"  type="text" name="recritmentName" class="form-control" value=""></td>
                                 	<td>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp</td>
                                 	<td class="form-group form-inline">推荐时间</td>
                                	<td><input id="recritmentdate" type="text" name="recritmentdate" class="form-control" value=""></td>
                                <tr>
                                <tr></tr>
                                <tr>
                                	<td class="form-group form-inline">推荐面试意见</td>
                                	<td>
                                	<textarea  id="note" style="width: 250%;height: 200px" name="opinions"></textarea>
                                	<td>
                                <tr>
                               </table>
                              
                             </div>
                        <div class="modal-footer">
                            <button type="button" class="addSure btn btn-info" onclick="Mtsubmit()">确定</button>
                            <button type="button" class="btn btn-default" data-dismiss="modal">返回</button>
                        </div>
                    </div>
                    </form>
                </div>
            </div>
       



<div class="table-box">
    <table id="table" class="table_style"></table>
</div>
<div class="pagination ue-clear"></div>



 <div id="layerOpen" hidden="hidden">
	  <div class="l_left"><label>职位名称：</label><input type="text" id="position_name" name="position_name" placeholder="请输入职位名称"  id="user"></div>
        <div class="l_left"><label>职位编码：</label><input type="text" id="position_code" name="position_code" placeholder="请输入职位编码"  id="user"></div>              
        <div class="l_left" id="department">
        	<label>所属部门：</label>
        	<select id="department_Id" name="department_Id">
            	<c:if test="${depList != null }">
						   <option value="0">--请选择--</option>
						   <c:forEach var="dep" items="${depList}">
						   		<option <c:if test="${dep.id == department_Id }">selected="selected"</c:if>
						   		value="${dep.id}">${dep.oz_name}</option>
						   </c:forEach>
						</c:if>
        	</select>
        </div>
     <button class="tabe_btn " onclick="getData()">查询</button>
     <div class="bt">
		   	 <button type="button" class="btnn" id="closere" >确定</button>
		     <button class="btnn" onClick="javascript :history.back(-1);" target="right">返回</button>
		 </div>
	<input id="ResumeID" style="display:none;" value="">
    <table id="open" class="table_style"></table>
</div>



</body>
<script type="text/javascript" src="${pageContext.request.contextPath }/static/js/jquery.js"></script>
<script src="${pageContext.request.contextPath }/static/js/bootstrap.min.js"></script>
<script src="${pageContext.request.contextPath }/static/js/bootstrap-table.js"></script>
<script src="${pageContext.request.contextPath }/static/js/bootstrap-table-zh-CN.min.js"></script>
<script src="${pageContext.request.contextPath }/static/js/date/js/laydate.js"></script>
<script src="${pageContext.request.contextPath }/static/js/recruitment/path.js"></script>
<script src="${pageContext.request.contextPath }/static/js/layer_v2.1/layer/layer.js"></script>
<script src="${pageContext.request.contextPath }/static/js/date/js/laydate.js"></script>
<script src="${pageContext.request.contextPath }/static/js/recruitment/resume.js"></script>
<script src="${pageContext.request.contextPath }/static/js/recruitment/openlayer.js"></script> 
<script>
    var PROJECTID, TASKTYPE, TASKPHASE,  PERSONID
    !function () {
        laydate.skin('danlan');//切换皮肤，请查看skins下面皮肤库
        laydate({ elem: '#registraTime' });//绑定元素
       
    }();
   
    
</script>
<script type="text/javascript">
function Mtsubmit(){
	var opinions=$('#note').val();
	var id=$('#id').val();
	$.ajax({
		type:"GET",
		url:"opinions.json",
		dataType:"json",
		data:{
			"opinions":opinions,
			"id":id
		},
		success: function (result) {
               
               if (result.data) {
                   var TableData = result.data;
                   $('#myModals').modal('hide');
                   $('#table').bootstrapTable("load", TableData);
                   
               }
           }
	});
	
}
</script>

</html>